/**
 * Called before the form component is rendered.
 *
 * @param {JSRenderEvent} event the render event
 *
 * @private
 *
 * @properties={typeid:24,uuid:"52816AC0-9657-483E-A2AF-5B9C4BFC0930"}
 */
function onRender(event) {

	/** @type {JSRecord<db:/pigeon_board/adm_t900_usuarios>} */
	var record = event.getRecord();
	
	if (record && record.b_es_super_adm == 1) {
		event.getRenderable().fgcolor = 'red';
	} else if (record && record.b_es_adm){
		event.getRenderable().fgcolor = 'blue';
	}else{
		event.getRenderable().fgcolor = '#808080';
	}
}
